/*
 * Globals.h
 *
 *  Created on: Jan 1, 2014
 *      Author: nick
 */

#ifndef GLOBALS_H_
#define GLOBALS_H_

#include "SDL/SDL.h"
#include "Sprite.h"

//Screen attributes
const int SCREEN_WIDTH = 540;
const int SCREEN_HEIGHT = 480;
const int SCREEN_BPP = 32;

//The frame rate
const int FRAMES_PER_SECOND = 20;

//The dot dimensions
const int DOT_WIDTH = 20;
const int DOT_HEIGHT = 20;

//The dimensions of the level
const int LEVEL_WIDTH = 1280;
const int LEVEL_HEIGHT = 960;

//Tile constants
const int TILE_WIDTH = 80;
const int TILE_HEIGHT = 80;
const int TOTAL_TILES = 192;
const int TILE_SPRITES = 2;

//The different tile sprites
const int TILE_BRICK = 0;
const int TILE_WALL = 1;

//The surfaces
extern SDL_Surface *dot;
extern SDL_Surface *screen;
extern SDL_Surface *tileSheet;

//The tiles that will be used
extern Sprite * tiles[TOTAL_TILES];

//Sprite from the tile sheet
extern SDL_Rect * clips[TILE_SPRITES];

//The event structure
extern SDL_Event event;

//The camera
extern SDL_Rect * camera;

#endif /* GLOBALS_H_ */
